import { RoleEnum } from '@/enums/roleEnum';

// 1.1 define store state type
export interface UserState {
  // token
  token?: string | null
  rolename?: string | null
  isSetUser?: boolean | null
  // arr type []
    //   menuRoutes: RouteRecordRaw[]
  roleList: RoleEnum[]
  username?: string | null
  avatar?: string | null
  sessionTimeout?: boolean
  lastUpdateTime: number
}
// 1.2 tabs info
export interface ITable {
  title: string
  path: string
}
